<template>
    <div class="select-user-dialog">
        <admin-user-group v-model="form.group_id"  power="search"  required placeholder="请输入管理员分组" ></admin-user-group>
        <bi-table height="400" :radio="radio" :checkbox="checkbox" >
            <bi-table-column label="用户名" prop="username" width="150"></bi-table-column>
            <bi-table-column label="姓名" prop="nickname" width="150"></bi-table-column>
        </bi-table>
    </div>
</template>

<script>

export default {
    dialog:{
        title:'选择管理员',
        width:500
    },
    data(){

        let radio =  false;
        let checkbox  = false;

        if (this.multiple){
            checkbox =  true;
        }else{
            radio =  true;
        }

        return {
            checkbox,
            radio
        }
    },
    methods:{
        dialogOk(){

        }
    },
    props:{
        multiple:{
            type:Boolean,
            default:false
        },
    }
}
</script>